

#pragma once

#include "CxType.h"
#include "CxThread.hpp"
#include "CxPort/CxBuffer.hpp"


BEGIN_NAMESPACE(MSG_SIGN)

class CxMachine;
class CxTransaction;

class CxExplainThread  :  public  CxThread
{
	typedef CxLinerBuffer<CxTransaction *>		_Buffer;

public:
	
	CxExplainThread(CxMachine *,_Buffer *);
	~CxExplainThread();

protected:

	void		run();

private:

	volatile	bool		b_spin;
	CxMachine	*m_machine;
	_Buffer		*m_transqueue;

};


END_NAMESPACE 